<?php
Yii::import('application.components.login.class.LoginAuth');
Yii::import('application.components.login.class.LoginIdentity');
class SysAuth extends LoginAuth{   
	public $id;
	public $status;
	public function authenticate(){
		$valid = $this->valid();
		if ($valid) {
			$this->setPrimary($this->id);
			$this->setUsername($this->username);
		}
		return $valid;
	}
	
	
}